/**
 * @author v.lugovsky
 * created on 16.12.2015
 */
(function () {
  'use strict';

  angular.module('BlurAdmin.pages.active', ['ui.select', 'ngSanitize'])
      .config(routeConfig);

  /** @ngInject */
  function routeConfig($stateProvider) {
    $stateProvider
        .state('active', {
          url: '/active',
          template : '<ui-view autoscroll="true" autoscroll-body-top></ui-view>',
          abstract: true,
          title: '活动管理',
          sidebarMeta: {
            icon: 'ion-grid',
            order: 250,
          },
        })
        .state('active.list', {
          url: '/list',
          templateUrl: 'app/pages/active/list/list.html',
          controller: 'listCtrl',
          title: '活动列表',
          sidebarMeta: {
            order: 0,
          },
        }).state('active.addlist', {
            url: '/addlist',
            templateUrl: 'app/pages/active/addlist/addlist.html',
            controller: 'addlistCtrl',
            title: '操作活动',
            sidebarMeta: {
                order: 0,
            },
        });
  }
})();
